package com.dwms.feign.declare;

import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.cebPay.request.CebPayQueryRequest;
import com.dwms.entity.declare.cebPay.request.CebPayRequest;
import com.dwms.entity.declare.cebPay.response.CebPayResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: CebPayController
 * @Description: CebPay
 * @Create 2025-09-15 23:06:58
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(value = "declare-server", path = "/cebPay")
public interface CebPayFeignClient {
    /**
     * 修改
     *
     * @param cebPayRequest
     *          请求参数
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody CebPayRequest cebPayRequest);

    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<CebPayResponse>> findPage(@RequestBody CebPayQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);
}
